#include<bits/stdc++.h>
#define int long long
#define N 800005
using namespace std;
int n,q;
int siz[N],id[N];
vector<int> g[N],f[N];
signed main(){
    freopen("dfs.in","r",stdin);
    freopen("dfs.out","w",stdout);
    scanf("%lld %lld",&n,&q);
    for(int i=1;i<=n;i++){
        scanf("%lld",&siz[i]);
        for(int j=1,x;j<=siz[i];j++) g[i].push_back(j);
    }
    return 0;
}